package com.ruoyi.report.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.report.mapper.ReportCarInfoMapper;
import com.ruoyi.report.domain.ReportCarInfo;
import com.ruoyi.report.service.IReportCarInfoService;

/**
 * 物流车信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-23
 */
@Service
public class ReportCarInfoServiceImpl implements IReportCarInfoService 
{
    @Autowired
    private ReportCarInfoMapper reportCarInfoMapper;

    /**
     * 查询物流车信息
     * 
     * @param id 物流车信息ID
     * @return 物流车信息
     */
    @Override
    public ReportCarInfo selectReportCarInfoById(Long id)
    {
        return reportCarInfoMapper.selectReportCarInfoById(id);
    }

    /**
     * 查询物流车信息列表
     * 
     * @param reportCarInfo 物流车信息
     * @return 物流车信息
     */
    @Override
    @DataScope(deptAlias = "d")
    public List<ReportCarInfo> selectReportCarInfoList(ReportCarInfo reportCarInfo)
    {
        return reportCarInfoMapper.selectReportCarInfoList(reportCarInfo);
    }

    /**
     * 新增物流车信息
     * 
     * @param reportCarInfo 物流车信息
     * @return 结果
     */
    @Override
    public int insertReportCarInfo(ReportCarInfo reportCarInfo)
    {

        return reportCarInfoMapper.insertReportCarInfo(reportCarInfo);
    }

    /**
     * 修改物流车信息
     * 
     * @param reportCarInfo 物流车信息
     * @return 结果
     */
    @Override
    public int updateReportCarInfo(ReportCarInfo reportCarInfo)
    {
        return reportCarInfoMapper.updateReportCarInfo(reportCarInfo);
    }

    /**
     * 批量删除物流车信息
     * 
     * @param ids 需要删除的物流车信息ID
     * @return 结果
     */
    @Override
    public int deleteReportCarInfoByIds(Long[] ids)
    {
        return reportCarInfoMapper.deleteReportCarInfoByIds(ids);
    }

    /**
     * 删除物流车信息信息
     * 
     * @param id 物流车信息ID
     * @return 结果
     */
    @Override
    public int deleteReportCarInfoById(Long id)
    {
        return reportCarInfoMapper.deleteReportCarInfoById(id);
    }
}
